<script id="imgGroupTpl" type="text/html">
<div class="hhq-box" style="margin:20px;">
    <div class="hhq-box-hd">单图组</div>
    <a class="layui-btn layui-btn-sm layui-btn-warm imgGroupSubmit" lay-submit lay-filter="imgGroupSubmit" style="float: right">保存设置</a>
    <div class="hhq-box-bd">
        <div class="layui-clear" id="imgGroupImgViewModuleParent">
            <div id="imgGroupImgView">

            </div>
            <button type="button" class="layui-btn layui-btn-primary layui-btn-fluid" id="addImgGroupImg">添加卡片</button>
        </div>
    </div>
</div>
</script>
<script id="imgGroupImgTpl" type="text/html">
    <div class="layui-form-item imgGroupImgViewModule" style="background-color: #c4f8fb;position: relative;padding: 20px 0px 20px">
        <i class="layui-icon layui-icon-close" onclick="delImgGroupImg(this);" style="font-size: 20px; color: #1E9FFF;background-color: #aaa;border-radius: 50%;position: absolute;right: -10px;top: -10px"></i>
        <div class="layui-block">
            <label class="layui-form-label">图片</label>
            <a type="button" class="layui-btn layui-btn-sm uploadImgGroupImg">
                <i class="layui-icon">&#xe67c;</i>上传图片
            </a>
            <a type="button" class="layui-btn layui-btn-sm layui-btn-danger" onclick="delThisImg(this);" >
                删除图片
            </a>
            <div style="padding-top:10px;margin-left: 110px">
                <div class="img-wrap thisImg"  style="background:#f8f8f8;text-align:center;">
                    {{#  if(d.url != ''){ }}
                    <img src="{{d.url}}">
                    {{#  } else { }}
                    <span style="font-size:60px;line-height:207px;color:#eee;">图片</span>
                    {{#  } }}
                </div>
            </div>
        </div>
        <label class="layui-form-label">图片地址</label>
        <div class="layui-input-block" style="width: 300px">
            <input type="text" name="url" value="{{d.url}}" placeholder="" class="layui-input" >
        </div>
        <label class="layui-form-label">链接地址</label>
        <div class="layui-input-block" style="width: 300px">
            <input type="text" name="link" value="{{d.link}}" placeholder="http://" class="layui-input" >
        </div>
        <label class="layui-form-label">标题</label>
        <div class="layui-input-block" style="width: 300px">
            <input type="text" name="title" value="{{d.title}}" placeholder="" class="layui-input" >
        </div>
        <label class="layui-form-label">文本</label>
        <div class="layui-input-block" style="width: 300px">
            <textarea name="content" placeholder="请输入内容" class="layui-textarea">{{d.content}}</textarea>
        </div>
    </div>
</script>